//
//  AssetManager.h
//  FileLockerPro
//
//  Created by SDSL-3 on 7/10/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define ROOT_DIR @"secure_data"
#define IMAGE_DIR @"images"
#define VIDEO_DIR @"videos"
#define NOTE_DIR @"notes"

@interface AssetManager : NSObject{
    
    NSString *root_dir;
    NSString *image_dir;
    NSString *video_dir;
    NSString *note_dir;
    
}

-(NSString *)imagePathFromName:(NSString *)name;
-(NSString *)videoPathFromName:(NSString *)name;
-(NSString *)notePathFromName:(NSString *)name;


-(void)createBaseDirsIsNotExist;
-(BOOL)fileExistsInPath:(NSString *)path;
-(NSMutableArray *)getAllFileNamesInDirectory:(NSString *)dirpath;

-(BOOL)saveNoteContents:(NSString *)contents WithName:(NSString *)name;
-(NSString *)getNoteContents:(NSString *)name;
-(NSArray *)getAllNotes;
-(BOOL)noteExists:(NSString *)name;
-(BOOL)deleteNote:(NSString *)name;


-(BOOL)saveImage:(UIImage *)image WithName:(NSString *)name;
-(BOOL)exportImage:(NSString *)name;
-(NSArray *)getAllImages;
-(NSMutableArray *)getAllImagePaths;
-(BOOL)deleteImage:(NSString *)name;

-(BOOL)deleteFile:(NSString *)path;


-(BOOL)saveVideo:(NSURL *)srcurl WithName:(NSString *)name;
-(BOOL)exportVideo:(NSString *)name;
-(NSArray *)getAllVideos;
-(NSMutableArray *)getAllVideoPaths;
-(BOOL)deleteVideo:(NSString *)name;


@end
